In chrome with a greasemonkey extension, how can I modify an `<a...>` construct to strip out the onc
Posted
by Ross Rogers
on Stack Overflow
See other posts from Stack Overflow
or by Ross Rogers
Published on 2010-03-17T20:33:55Z
Indexed on
2010/03/19
19:51 UTC
Read the original article
Hit count: 240
I want to modify an internal webpage to strip away some of the onclick
behavior of certain links.
The internal webpage has a bunch of links like:
<a href="/slm/detail/ar/3116370" onclick="rallyPorthole.showDetail('/ar/view.sp','3116370','pj/b');return false;">foo de fa fa</a>
How can I do an extension to Chrome so it does the following:
for link in all_links:
if link's href attribute matches '/slm/detail/ar/...':
remove the onclick attribute
© Stack Overflow or respective owner